solving a literal equation